package com.koron.tool.service;

import com.koron.bean.base.Response;
import com.koron.bean.system.staff.vo.EamUser;
import com.koron.tool.bean.ToolInspectionDetailQuery;
import com.koron.tool.bean.ToolScrapQuery;
import com.koron.tool.bean.ToolUseRecordBean;
import com.koron.tool.bean.ToolUseRecordQuery;
import org.koron.ebs.mybatis.SessionFactory;

/**
 * @Author: liaodf
 * @Date: 2021/10/21 17:01
 */
public interface ToolUseRecordService {

    /**
     * 获取工具使用记录数据
     * @param factory
     * @return
     */
    Response useRecordList(SessionFactory factory, ToolUseRecordQuery query);

    /**
     * 获取工具使用记录数据
     * @param factory
     * @return
     */
    Response addUseRecord(SessionFactory factory, EamUser user, ToolUseRecordBean bean);

    /**
     * 获取工具检验记录数据
     * @param factory
     * @return
     */
    Response inspectionRecordList(SessionFactory factory, ToolInspectionDetailQuery query);

    /**
     * 获取工具报废记录数据
     * @param factory
     * @return
     */
    Response scrapRecordList(SessionFactory factory, ToolScrapQuery query);
}
